const express = require("express");
const expressJoi = require("../utils/express-joi");
const { reg_login_schema } = require("../schemas/loginSchema");

const loginController = require("../controllers/loginController");

const router = express.Router();

router.post("/login", expressJoi(reg_login_schema), loginController.loginUser);

module.exports = router;
